<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

class Sendemail extends CI_Model {

    public $email_From;
    public $email_to;
    public $email_subject;
    public $email_mesage;

    function __construct() {
        parent::__construct();
        $this->load->helper(array("url"));
        $this->load->library('email');
    }

    public function set_mailtype() {
        $this->email->set_mailtype("html");
    }
// aiogroup@shophoa.esy.es
    public function send() {
        $this->email->from($this->email_From, 'AIO Shop');
        $this->email->to($this->email_to);
        $this->email->subject($this->email_subject);
        $this->email->message($this->email_mesage);
        $this->email->send();
    
    }

}
